import { ApiCall } from "tsrpc";
import { player, wallet_key } from "../../../model/fight/body/player";
import { ReqLook, ResLook } from "../../../shared/master/wallet/PtlLook";

export default async function (call: ApiCall<ReqLook, ResLook>) {
    let user = call.req._player as player;
    call.succ({
        gold: user.wallet_get(wallet_key.gold),
        diamond: user.wallet_get(wallet_key.diamond)
    })
}